#pragma once

#include "sys/IInterface.h"
#include "WorkspaceID.h"

class  SystemEventArgs;	interface IView;interface IDocument;struct ExecuteArgument;

interface IController : public IInterface
{
	DEFINE_IID(IID_Controller)

	virtual void ActivateControl(IView* view,IDocument* document) = 0;
	virtual void CloseControl(IView* view,IDocument* document) = 0;

	virtual bool ExecuteCommand(uint32 commandid,ExecuteArgument* arg=NULL) = 0;
	virtual void AddCommand(uint32 commandid,vclsid clsidCommand) = 0;
};

